The .netrc file can be used to provide credentials to many CLI tools (e.g. wget, git).
Syntax:
machine example.com
login admin
password verysecret
When using .netrc consider
- that your passwords are stored in plain text
- to use proper file permissions (e.g. 0600)